<style>
#komitent_materijal_new form{
	width:300px;
}
#komitent_materijal_new form label{
	width:60px;
}
#komitent_materijal_new form label.auto{
	width:auto;
}
#komitent_materijal_new form textarea{
	width:200px;
	height:100px;
}
#komitent_materijal_new form input[type=submit]{
	float:right;
}
</style>
<div id="komitent_materijal_new">
	<form class="area" method="post" action="javascript:void(0)" onSubmit="submitForm(this,'komitenti.php','POST','alert',1)">
		<input type="hidden" name="a" value="materijal" />
		<input type="hidden" name="mod" value="save" />
		
		<a style="float:right" href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=materijal','setContent')">pregled</a>
		
		<h1>Slanje materijala</h1>
		
		<label class="left" for="ugovor">Ugovor:</label class="left">
		<input type="text" name="ugovor" id="ugovor" disabled="disabled"  value=""/>
		<input type="hidden" name="ugovor_id" id="ugovor_id" value="" />
		<input type="button" onclick="selectUgovor('ugovor','komitent_id','komitent','ugovor_id')" title="Nađi ugovor..." value="" class="ugovorBtn" />
		
		<br clear="all" />
		<label class="left" for="komitent">Komitent:</label class="left">
		<input type="text" name="komitent" id="komitent" disabled="disabled" />
		<input type="hidden" name="komitent_id" id="komitent_id" />
		<!--<input type="button" onclick="selectKomitent('komitent','komitent_id','duzniciUpdateKomitentDetails()');" title="Nađi komitenta..." value="" class="searchBtn" />-->
		
		<br clear="all" />
		<label class="left" for="tip_slanja">Tip slanja:</label>
		<select name="tip_slanja" id="tip_slanja">
			{{%loop start tip_slanja_id}}
			<option value="{{$tip_slanja_id}}">{{$tip_slanja_name}}</option>
			{{%loop end}}
		</select>
		
		<br clear="all" />
		<fieldset>
			<legend>ishod</legend>
			<label class="left" for="ishod">Ishod</label>
			<select name="ishod" id="ishod">
				{{%loop start ishod_id}}
				<option value="{{$ishod_id}}">{{$ishod_name}}</option>
				{{%loop end}}
			</select>
			<br clear="all" />
			
			<label class="left" for="ishod_date">Datum:</label>
			<input type="text" class="dateInput" name="ishod_date" id="ishod_date" />
			<input type="button" class="datePicker" onclick="displayDatePicker('ishod_date',this)" />
			<label class="left auto" for="ishod_hour">Sat:</label>
			<input type="text" class="timeInput" name="ishod_hour" id="ishod_hour" />
			<label class="left auto" for="ishod_minute">Min:</label>
			<input type="text" class="timeInput" name="ishod_minute" id="ishod_minute" />
			
			
			<br clear="all" />
			<label class="left" for="opis">Opis:</label>
			<textarea name="opis" id="opis"></textarea>
		</fieldset>
		
		
		
		<br clear="all" />
		<input type="submit" class="save" value="sačuvaj" />
	</form>
</div>